<!DOCTYPE html>
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>华猫商城</title>
		<style></style>
		<link href="../css/jquery.validator.css" rel="stylesheet">
		<link href="../css/common.css" rel="stylesheet">

		<link href="../plugin/userLib/css/user.css" rel="stylesheet">
		<link href="../plugin/userLib/css/userinfo.css" rel="stylesheet">
		<link href="../plugin/userLib/css/my_user.css" rel="stylesheet">
		<link href="../css/base.css" rel="stylesheet">
		<link href="../plugin/webuploader/webuploader.css" rel="stylesheet">
		<style>
			
		</style>
	</head>

	<body>
		<div id="header"></div>
		<div id="headerBox"></div>
		<!--<div id="nav_menu"></div>-->
		<div class="ZZHT-wrap">
			<div class="ZZHT-header" style="border-bottom: 1px solid #ffffff;">
				<div class="ZZHT-shop-nav">
					<div class="ZZHT-nav-box">
						<a href="#">
							<li class="liselect ZZHT-lfloat ZZHT-nav-boxa">用户中心</li>
						</a>
						<div class="ZZHT-clear"></div>
					</div>
				</div>
				<div class="ZZHT-clear"></div>
			</div>
			<div class="ZZHT-main">
				<div id="user_left"></div>
				<div class="ZZHT-content">

					<div class="ZZHT-user-head clearfix">
						<b>充值</b>
						<span class="user_bread fr">
				        当前位置：<span>首页</span>--<span>充值</span>
						</span>
					</div>
					<div class="mains bz">
						<div class="form-group">
							<label class="control-label"><span class="text-label">充值金额：</span><input type="text" class="money" name="pay_money" onkeydown="javascript:ZZHT.isNumberdote(this)" aria-required="true"></label>
						</div>
						<button class="sure_btn toPay">确认</button>
					</div>

				</div>
			</div>
			<div style="clear:both;"></div>
			<br>
		</div>
		<div id="ck3"></div>
		<script src="../js/jquery.min.js"></script>
		<script src="../js/jquery.validator.js"></script>
		<script src="../js/zh-CN.js"></script>
		<script type="text/javascript" src="../plugin/layer/layer.js"></script>
		<script src="../js/common.js"></script>
		<script src="../js/common_view.js"></script>
		<script type="text/javascript" src="../js/ljf_base.js"></script>
		<!--<script type="text/javascript" src="../plugin/userLib/js/account.js"></script>-->
		<script type="text/javascript">

			$('.toPay').click(function(){
				var money = $('.money').val();
				console.log(money);
				if(money){
					$.ajax({
						type: "get",
						url: SURL + "webAccount/recharge",
						async:false,
						data: {
							"userId": localStorage.userId,
							"totalMoney":money
						},
						success: function(res) {
							console.log(res);
							if(res.messageCode==200){
								location.href = '../carts/underLinePay.html?money='+money+'&id='+res.entity.id+'&orderNO='+res.entity.orderNO;
							}
						}
					});
				}else{
					layer.msg('请输入充值金额');
				}
			})
		</script>
	</body>

</html>